package com.bjpowernode.service.impl;

import com.bjpowernode.manager.StatisticManager;
import com.bjpowernode.result.AxisData;
import com.bjpowernode.result.AxisTranData;
import com.bjpowernode.result.NameValueData;
import com.bjpowernode.result.OverviewData;
import com.bjpowernode.service.RedisService;
import com.bjpowernode.service.StatisticService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {
    @Resource
    private StatisticManager statisticManager;
    @Override
    public OverviewData loadOverviewData() {
        return statisticManager.loadOverviewData();
    }

    @Override
    public List<NameValueData> loadFunnelData() {
        return statisticManager.loadFunnelData();
    }

    @Override
    public List<NameValueData> loadClueSourcePie() {
        return statisticManager.loadClueSourcePie();
    }

    @Override
    public AxisData loadActivityBar() {
        return statisticManager.loadActivityBar();
    }

    @Override
    public AxisData loadClueBar() {
        return statisticManager.loadClueBar();
    }

    @Override
    public AxisData loadCustomerBar() {
        return statisticManager.loadCustomerBar();
    }

    @Override
    public AxisTranData loadTranBar() {
        return statisticManager.loadTranBar();
    }
}
